import React, { Component } from 'react'


export  function withCopyRight (SourceCom) {
    
    class NewCom extends Component {
        render() {
            return (
                <>
                    <SourceCom {...this.props}></SourceCom>
                    <div>版权所有：千锋</div>
                </>
            )
        }
    }
    return NewCom;
}

export function withAxios(SourceCom) {
    
    SourceCom.prototype = {
        eat:function(){

        }
    }

    SourceCom.prototype.eat =function(){
        console.log("eat");
    }
    
    return SourceCom;
}